package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 数据库通用操作实体类（普通增删改查）
 */
@TableName("shangpinleixing")
public class ShangpinleixingEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ShangpinleixingEntity() {
		
	}
	
	public ShangpinleixingEntity(T t) {
		BeanUtils.copyProperties(this, t);
	}

	@TableId
	private Long id;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;
	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	
	    private String shangpinleixing;
	    public void setShangpinleixing(String shangpinleixing) {
		    this.shangpinleixing = shangpinleixing;
	    }
	    public String getShangpinleixing() {
		    return shangpinleixing;
	    }
        

}

